﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000295 RID: 661
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueQueryScRsp : IMessage<ChessRogueQueryScRsp>, IMessage, IEquatable<ChessRogueQueryScRsp>, IDeepCloneable<ChessRogueQueryScRsp>, IBufferMessage
	{
		// Token: 0x1700089C RID: 2204
		// (get) Token: 0x06001D9D RID: 7581 RVA: 0x0005462A File Offset: 0x0005282A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueQueryScRsp> Parser
		{
			get
			{
				return ChessRogueQueryScRsp._parser;
			}
		}

		// Token: 0x1700089D RID: 2205
		// (get) Token: 0x06001D9E RID: 7582 RVA: 0x00054631 File Offset: 0x00052831
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueQueryScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700089E RID: 2206
		// (get) Token: 0x06001D9F RID: 7583 RVA: 0x00054643 File Offset: 0x00052843
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueQueryScRsp.Descriptor;
			}
		}

		// Token: 0x06001DA0 RID: 7584 RVA: 0x0005464A File Offset: 0x0005284A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueQueryScRsp()
		{
		}

		// Token: 0x06001DA1 RID: 7585 RVA: 0x00054654 File Offset: 0x00052854
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueQueryScRsp(ChessRogueQueryScRsp other) : this()
		{
			this.finishInfo_ = ((other.finishInfo_ != null) ? other.finishInfo_.Clone() : null);
			this.retcode_ = other.retcode_;
			this.info_ = ((other.info_ != null) ? other.info_.Clone() : null);
			this.rogueCurrentInfo_ = ((other.rogueCurrentInfo_ != null) ? other.rogueCurrentInfo_.Clone() : null);
			this.queryInfo_ = ((other.queryInfo_ != null) ? other.queryInfo_.Clone() : null);
			this.rogueGetInfo_ = ((other.rogueGetInfo_ != null) ? other.rogueGetInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001DA2 RID: 7586 RVA: 0x00054710 File Offset: 0x00052910
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueQueryScRsp Clone()
		{
			return new ChessRogueQueryScRsp(this);
		}

		// Token: 0x1700089F RID: 2207
		// (get) Token: 0x06001DA3 RID: 7587 RVA: 0x00054718 File Offset: 0x00052918
		// (set) Token: 0x06001DA4 RID: 7588 RVA: 0x00054720 File Offset: 0x00052920
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueFinishInfo FinishInfo
		{
			get
			{
				return this.finishInfo_;
			}
			set
			{
				this.finishInfo_ = value;
			}
		}

		// Token: 0x170008A0 RID: 2208
		// (get) Token: 0x06001DA5 RID: 7589 RVA: 0x00054729 File Offset: 0x00052929
		// (set) Token: 0x06001DA6 RID: 7590 RVA: 0x00054731 File Offset: 0x00052931
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170008A1 RID: 2209
		// (get) Token: 0x06001DA7 RID: 7591 RVA: 0x0005473A File Offset: 0x0005293A
		// (set) Token: 0x06001DA8 RID: 7592 RVA: 0x00054742 File Offset: 0x00052942
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueGameInfo Info
		{
			get
			{
				return this.info_;
			}
			set
			{
				this.info_ = value;
			}
		}

		// Token: 0x170008A2 RID: 2210
		// (get) Token: 0x06001DA9 RID: 7593 RVA: 0x0005474B File Offset: 0x0005294B
		// (set) Token: 0x06001DAA RID: 7594 RVA: 0x00054753 File Offset: 0x00052953
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueCurrentInfo RogueCurrentInfo
		{
			get
			{
				return this.rogueCurrentInfo_;
			}
			set
			{
				this.rogueCurrentInfo_ = value;
			}
		}

		// Token: 0x170008A3 RID: 2211
		// (get) Token: 0x06001DAB RID: 7595 RVA: 0x0005475C File Offset: 0x0005295C
		// (set) Token: 0x06001DAC RID: 7596 RVA: 0x00054764 File Offset: 0x00052964
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueQueryInfo QueryInfo
		{
			get
			{
				return this.queryInfo_;
			}
			set
			{
				this.queryInfo_ = value;
			}
		}

		// Token: 0x170008A4 RID: 2212
		// (get) Token: 0x06001DAD RID: 7597 RVA: 0x0005476D File Offset: 0x0005296D
		// (set) Token: 0x06001DAE RID: 7598 RVA: 0x00054775 File Offset: 0x00052975
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueGetInfo RogueGetInfo
		{
			get
			{
				return this.rogueGetInfo_;
			}
			set
			{
				this.rogueGetInfo_ = value;
			}
		}

		// Token: 0x06001DAF RID: 7599 RVA: 0x0005477E File Offset: 0x0005297E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueQueryScRsp);
		}

		// Token: 0x06001DB0 RID: 7600 RVA: 0x0005478C File Offset: 0x0005298C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueQueryScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.FinishInfo, other.FinishInfo) && this.Retcode == other.Retcode && object.Equals(this.Info, other.Info) && object.Equals(this.RogueCurrentInfo, other.RogueCurrentInfo) && object.Equals(this.QueryInfo, other.QueryInfo) && object.Equals(this.RogueGetInfo, other.RogueGetInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001DB1 RID: 7601 RVA: 0x00054830 File Offset: 0x00052A30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.finishInfo_ != null)
			{
				num ^= this.FinishInfo.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.info_ != null)
			{
				num ^= this.Info.GetHashCode();
			}
			if (this.rogueCurrentInfo_ != null)
			{
				num ^= this.RogueCurrentInfo.GetHashCode();
			}
			if (this.queryInfo_ != null)
			{
				num ^= this.QueryInfo.GetHashCode();
			}
			if (this.rogueGetInfo_ != null)
			{
				num ^= this.RogueGetInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001DB2 RID: 7602 RVA: 0x000548DD File Offset: 0x00052ADD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001DB3 RID: 7603 RVA: 0x000548E5 File Offset: 0x00052AE5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001DB4 RID: 7604 RVA: 0x000548F0 File Offset: 0x00052AF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.queryInfo_ != null)
			{
				output.WriteRawTag(10);
				output.WriteMessage(this.QueryInfo);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Retcode);
			}
			if (this.rogueGetInfo_ != null)
			{
				output.WriteRawTag(34);
				output.WriteMessage(this.RogueGetInfo);
			}
			if (this.info_ != null)
			{
				output.WriteRawTag(66);
				output.WriteMessage(this.Info);
			}
			if (this.rogueCurrentInfo_ != null)
			{
				output.WriteRawTag(82);
				output.WriteMessage(this.RogueCurrentInfo);
			}
			if (this.finishInfo_ != null)
			{
				output.WriteRawTag(106);
				output.WriteMessage(this.FinishInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001DB5 RID: 7605 RVA: 0x000549BC File Offset: 0x00052BBC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.finishInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.FinishInfo);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.info_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Info);
			}
			if (this.rogueCurrentInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueCurrentInfo);
			}
			if (this.queryInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.QueryInfo);
			}
			if (this.rogueGetInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueGetInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001DB6 RID: 7606 RVA: 0x00054A74 File Offset: 0x00052C74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueQueryScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.finishInfo_ != null)
			{
				if (this.finishInfo_ == null)
				{
					this.FinishInfo = new ChessRogueFinishInfo();
				}
				this.FinishInfo.MergeFrom(other.FinishInfo);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.info_ != null)
			{
				if (this.info_ == null)
				{
					this.Info = new ChessRogueGameInfo();
				}
				this.Info.MergeFrom(other.Info);
			}
			if (other.rogueCurrentInfo_ != null)
			{
				if (this.rogueCurrentInfo_ == null)
				{
					this.RogueCurrentInfo = new ChessRogueCurrentInfo();
				}
				this.RogueCurrentInfo.MergeFrom(other.RogueCurrentInfo);
			}
			if (other.queryInfo_ != null)
			{
				if (this.queryInfo_ == null)
				{
					this.QueryInfo = new ChessRogueQueryInfo();
				}
				this.QueryInfo.MergeFrom(other.QueryInfo);
			}
			if (other.rogueGetInfo_ != null)
			{
				if (this.rogueGetInfo_ == null)
				{
					this.RogueGetInfo = new ChessRogueGetInfo();
				}
				this.RogueGetInfo.MergeFrom(other.RogueGetInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001DB7 RID: 7607 RVA: 0x00054B8C File Offset: 0x00052D8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001DB8 RID: 7608 RVA: 0x00054B98 File Offset: 0x00052D98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 34U)
				{
					if (num == 10U)
					{
						if (this.queryInfo_ == null)
						{
							this.QueryInfo = new ChessRogueQueryInfo();
						}
						input.ReadMessage(this.QueryInfo);
						continue;
					}
					if (num == 24U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 34U)
					{
						if (this.rogueGetInfo_ == null)
						{
							this.RogueGetInfo = new ChessRogueGetInfo();
						}
						input.ReadMessage(this.RogueGetInfo);
						continue;
					}
				}
				else
				{
					if (num == 66U)
					{
						if (this.info_ == null)
						{
							this.Info = new ChessRogueGameInfo();
						}
						input.ReadMessage(this.Info);
						continue;
					}
					if (num == 82U)
					{
						if (this.rogueCurrentInfo_ == null)
						{
							this.RogueCurrentInfo = new ChessRogueCurrentInfo();
						}
						input.ReadMessage(this.RogueCurrentInfo);
						continue;
					}
					if (num == 106U)
					{
						if (this.finishInfo_ == null)
						{
							this.FinishInfo = new ChessRogueFinishInfo();
						}
						input.ReadMessage(this.FinishInfo);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04000C36 RID: 3126
		private static readonly MessageParser<ChessRogueQueryScRsp> _parser = new MessageParser<ChessRogueQueryScRsp>(() => new ChessRogueQueryScRsp());

		// Token: 0x04000C37 RID: 3127
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000C38 RID: 3128
		public const int FinishInfoFieldNumber = 13;

		// Token: 0x04000C39 RID: 3129
		private ChessRogueFinishInfo finishInfo_;

		// Token: 0x04000C3A RID: 3130
		public const int RetcodeFieldNumber = 3;

		// Token: 0x04000C3B RID: 3131
		private uint retcode_;

		// Token: 0x04000C3C RID: 3132
		public const int InfoFieldNumber = 8;

		// Token: 0x04000C3D RID: 3133
		private ChessRogueGameInfo info_;

		// Token: 0x04000C3E RID: 3134
		public const int RogueCurrentInfoFieldNumber = 10;

		// Token: 0x04000C3F RID: 3135
		private ChessRogueCurrentInfo rogueCurrentInfo_;

		// Token: 0x04000C40 RID: 3136
		public const int QueryInfoFieldNumber = 1;

		// Token: 0x04000C41 RID: 3137
		private ChessRogueQueryInfo queryInfo_;

		// Token: 0x04000C42 RID: 3138
		public const int RogueGetInfoFieldNumber = 4;

		// Token: 0x04000C43 RID: 3139
		private ChessRogueGetInfo rogueGetInfo_;
	}
}
